@extends('backend.layouts.master')
@section('main')    
<!-- main content -->
<form method="post" class="form-horizontal" enctype="multipart/form-data">
<div id="content" class="span9">
      <div class="page-header">
        <h1><span class="icon-newspaper margin30"></span> Thêm sản phẩm</h1>
      </div>
      <div class="clearfix"></div>
      <div class="noidung">
      	<table id="table-article">
      		<tr>
      			<td width="15%">Tên sản phẩm<span class="require"> *</span></td>
      			<td  colspan="3" class="err"><input type="text" id="tensanpham" name="tensanpham" data-validation="required" style="width:400px"/></td> 				
      		</tr>
            <tr>
      			<td width="15%">Đơn giá<span class="require"> *</span></td>
      			<td  colspan="3" class="err"><input type="text" id="dongia" name='dongia' value=''/></td>     </td>           
      		</tr>
            <tr>
                <td colspan="4">Mô tả<span class="require"> *</span>
                <textarea id="mota" name="mota" class="ckeditor" rows="3"></textarea></td>
            </tr> 
            <tr>
                <td colspan="4">Chi tiết<span class="require"> *</span>
                <textarea id="chitiet" name="chitiet" class="ckeditor" rows="3"></textarea></td>
            </tr>
            <tr>
                <td width="10%">Hình ảnh</td>
                <td ><input type="file" id="image-file3" name="image-file3"/></td>
            </tr>            
            <tr>
      			<td width="15%">Ngày tạo<span class="require"> *</span></td>
      			<td  colspan="3" class="err"><input type="text" id="create" class='datepicker' name='create' value=''/></td>     </td>           
      		</tr>  
      	</table>
      	<div id="div-footer">
      		<button type="submit" class="btn btn-primary" id="save">Thêm</button>
      		<a href="{{URL::to('admin/sanpham')}}" class="btn btn-info">Cancel</a>
      	</div>
      </div>
</div> 
</form> 
<script type="text/javascript">
$(document).ready(function () {
    $(".datepicker").datepicker({
      dateFormat: 'yy-mm-dd'
    });
  });
</script>

@stop
<!-- end main content -->    